Read the letters those languages use, and bound a /ToUnicode map - #1
Merged
Conversation
tannevaled
force-pushed
the
bump-pdfkit-deps
branch
from
August 27, 2026 12:57
46f4dab to
37f6bd3
Compare
pdffont v0.2.0 -> v0.3.0, reader v0.4.1 -> v0.4.2. A form is filled in with text, and read back as text. Glyph names covering Czech, Polish, Slovak, Hungarian, Turkish, Romanian, Latvian and Lithuanian letters mapped to nothing at all, and names spelling more than one character -- a letter and its accent, a Hebrew cluster -- were refused. An appearance is drawn from those names, so a value this could not spell was a value nobody could see. The same pdffont release bounds how many codes one /ToUnicode map may name: 10 655 bytes of it used to produce 13 million entries, 1 054 MB and about ten seconds, per font, per page. reader v0.4.2 fixes InlineImage.Expanded, which let Go's randomised map iteration order decide between both spellings of a key -- /W beside /Width -- so the same file read five different ways in eight runs. A .gitignore comes with it. This is the only module of the family without one, which is how a coverage profile nearly went in with this commit; the other five all ignore exactly this file.
tannevaled
force-pushed
the
bump-pdfkit-deps
branch
from
August 27, 2026 13:14
37f6bd3 to
1c060e3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Measurements are being run now and will be added to this body before review.